package setDaemonDemo;

public class Demo {
    public static void main(String[] args) {
        Thread mainT = new MyThread("老大");
        Thread t= new MyDaemon("老二");
        t.setDaemon(true);
        mainT.start();
        t.start();
    }
}
